<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<script>

    document.write("<table border=\"1px\" cellspacing='0px' cellpadding='5px'>")
    for (let i = 0; i < 9; i++) {
        document.write("<tr>")

        for (let j = 0; j < i; j++) {
            document.write("<td>")
            let str = j + "X" + i + "=" + (i * j)
            document.write(str)
            document.write("</td>")
        }
        document.write("</tr>")
    }
    document.write("</table>")

</script>

</body>
</html>